package com.starhub.application.message.result;

import lombok.Data;

import java.util.List;

import com.starhub.common.bean.agent.ChatSession;

/**
 * 会话列表返回结果
 */
@Data
public class AIChatSessionResult {
    
    /**
     * 会话列表
     */
    private List<ChatSessionVO> records;
    
    /**
     * 总记录数
     */
    private Long total;
    
    /**
     * 每页大小
     */
    private Long size;
    
    /**
     * 当前页码
     */
    private Long current;
    
    /**
     * 构建成功结果
     */
    public static AIChatSessionResult success(List<ChatSessionVO> records, Long total, Long size, Long current) {
        AIChatSessionResult result = new AIChatSessionResult();
        result.setRecords(records);
        result.setTotal(total);
        result.setSize(size);
        result.setCurrent(current);
        return result;
    }
    
    /**
     * 构建失败结果
     */
    public static AIChatSessionResult fail() {
        return new AIChatSessionResult();
    }
} 